import Vue from "vue";
import VueRouter from "vue-router";
import Index from "@/views/index.vue";
import ClassInd from "@/views/class.vue";
import Order from "@/views/order.vue";
import FnTiyu from "@/views/two/FnTiyu.vue";
import NoTiyu from "@/views/two/NoTiyu.vue";
import tiIndex from "@/views/two/tiIndex.vue";
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/index",
    component: Index,
  },
  {
    path: "/class",
    component: ClassInd,
  },
  {
    path: "/order",
    component: Order,
    redirect: "/order/noti",
    children: [
      {
        path: "tiindex",
        component: tiIndex,
      },
      {
        path: "yexti",
        component: FnTiyu,
      },
      {
        path: "noti",
        component: NoTiyu,
      },
    ],
  },
];

const router = new VueRouter({
  routes,
});

export default router;
